package com.qiwo.webshow.domain;


import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.activerecord.Model;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 
 * <pre>
 *  @author  chenwenchao
 *  @date 2018-10-25 16:50:54
 * 常见问题管理
 * </pre>
 * <small> 2018-10-25 16:50:54 | chenwenchao</small>
 */
@Data
@SuppressWarnings("serial")
@TableName("tb_common_question")
@EqualsAndHashCode(callSuper=true) 
public class CommonQuestionDO  extends Model< CommonQuestionDO> implements Serializable {
	@TableId
	private Long id;

    /** 问题 */
    @ApiModelProperty("问题")
    @TableField("question")
    private String question;

    /** 答案 */
    @ApiModelProperty("答案")
    @TableField("answer")
    private String answer;

        @Override
        protected Serializable pkVal(){
            return this.id;
        }
}
